Translate a PIN from One ZPK to Another

Command:

Translate a PIN block from encryption under one ZPK to encryption under another ZPK and from one format to another. If the same ZPK is defined, only the PIN block is translated, and if the same PIN block format is defined, only the key is translated.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message header

m A

(Subsequently returned to the Host unchanged).

Command code

2 A

Value CC.

Source ZPK

16H or
1A+32H or 1A+48H

Source ZPK under which the PIN block is currently encrypted; encrypted under  LMK pair 06-07.

Destination ZPK

16H or
1A+32H or 1A+48H

Destination ZPK under which the PIN block is to be encrypted; encrypted under LMK pair 06-07.

Maximum PIN length

2 N

Value 12.

Source PIN block

16 H

The source PIN block encrypted under the source ZPK.

Source PIN block format

2 N

The format code for the source PIN block.

Destination PIN block format

2 N

The format code for the destination PIN block.

Account number

12 N

The 12 right-most digits of the account number, excluding the check digit.

End message delimiter

1 C

Optional. Must be present if a message trailer is present. Value X’19.

Message trailer

n A

Optional. Maximum length 32 characters.

 


 

Field

Length & Type

Details

RESPONSE MESSAGE

Message header

m A

Returned to the Host unchanged.

Response code

2 A

Value CD.

Error code

2 N

00 : No errors

10 : Source ZPK parity error

11 : Destination ZPK parity error

12 : No keys loaded in user storage

13 : LMK error; report to supervisor

15 : Error in input data

20 : PIN block data error

21 : Invalid user storage index

22 : Invalid account number

23 : Invalid PIN block format code

24 : PIN is fewer than 4 or more than 12 digits

PIN length

2 N

Length of the returned PIN.

Destination PIN block

16 H

The destination PIN block encrypted under the destination ZPK.

Destination PIN block format

2 N

As received in the command message.

End message delimiter

1 C

Present only if present in the command message. Value X’19.

Message trailer

n A

Present only if present in the command message. Maximum length 32 characters.